// Main header
#include "Main.h"

// My header
#include "Timer.h"

u_int				Timer::s_uTickBase		= 0;
float				Timer::s_fFrameTime		= 0.0f;
float				Timer::s_fRunTime		= 0.0f;

void Timer::Update()
{
    s_fFrameTime = static_cast<float>( SDL_GetTicks() - s_uTickBase ) / 1000.0f;
    s_fRunTime += s_fFrameTime;
	s_uTickBase = SDL_GetTicks();
}